package com.ln.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ln.dao.DatasourceConfigDao;
import com.ln.model.DatasourceConfigEntity;
import com.ln.service.DatasourceConfigService;



@Service
public class DatasourceConfigServiceImpl implements DatasourceConfigService {
	@Resource
	private DatasourceConfigDao datasourceConfigDao;
	
	@Override
	public DatasourceConfigEntity queryObject(Integer dcId){
		return datasourceConfigDao.queryObject(dcId);
	}
	
	@Override
	public List<DatasourceConfigEntity> queryList(Map<String, Object> map){
		return datasourceConfigDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return datasourceConfigDao.queryTotal(map);
	}
	
	@Override
	public void save(DatasourceConfigEntity datasourceConfig){
		datasourceConfigDao.save(datasourceConfig);
	}
	
	@Override
	public void update(DatasourceConfigEntity datasourceConfig){
		datasourceConfigDao.update(datasourceConfig);
	}
	
	@Override
	public void delete(Integer dcId){
		datasourceConfigDao.delete(dcId);
	}
	
	@Override
	public void deleteBatch(Integer[] dcIds){
		datasourceConfigDao.deleteBatch(dcIds);
	}
	
}
